
import java.io.File;
import javax.swing.JTextArea;
import org.agilelang.config.ReadConfig;
import org.agilelang.config.ScannerConfig;
import org.agilelang.generate.AgileGenerator;
import org.agilelang.scanner.Scanner;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author RoderickNestor
 */
public class Test {

    public static void main(String ar[]) {

        //ScannerConfig scanner_config = new ScannerConfig("E:\\agile\\AgileLang\\Test\\out_config.tmp",                "E:\\agile\\AgileLang\\Test\\config_out.xml");

        //----------------------------------------------------------------------
        ReadConfig read_config = new ReadConfig();
        read_config.process("E:\\agile\\AgileLang\\Test\\config_out.xml");

        Scanner scanner = new Scanner("E:\\agile\\AgileLang\\Test\\out_source",                read_config.getListObjectClass(), "E:\\agile\\AgileLang\\Test\\scanner_out.xml");
        //----------------------------------------------------------------------
        AgileGenerator ag = new AgileGenerator();
        
        ag.process("E:\\agile\\AgileLang\\Test\\scanner_out.xml",
                "E:\\agile\\AgileLang\\Test\\tmpl",
                "E:\\agile\\AgileLang\\Test\\out", read_config.getListObjectClass(), new JTextArea());
    }

}
